<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of VMT_FilterBS_IntensityRS</title>
  <meta name="keywords" content="VMT_FilterBS_IntensityRS">
  <meta name="description" content="Not implemented in current version">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html VMT_4.0_dev --><!-- menu.html depreciated -->
<h1>VMT_FilterBS_IntensityRS
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>Not implemented in current version</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function A = VMT_FilterBS_IntensityRS(z,A) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Not implemented in current version
 This routine filters the backscatter data.

 (adapted from code by J. Czuba)

 Version for Ricardo for use with intensity data rather than backscatter

 P.R. Jackson, USGS, 2-15-11</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function A = VMT_FilterBS_IntensityRS(z,A)</a>
0002 <span class="comment">% Not implemented in current version</span>
0003 <span class="comment">% This routine filters the backscatter data.</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% (adapted from code by J. Czuba)</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% Version for Ricardo for use with intensity data rather than backscatter</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% P.R. Jackson, USGS, 2-15-11</span>
0010 
0011 
0012 <span class="comment">%% Filter</span>
0013 <span class="comment">% filter backscatter when climbing walls</span>
0014 
0015 <span class="keyword">for</span> zi = 1 : z
0016 
0017     A(zi).Clean.backstandf=nan(double(A(zi).Sup.nBins),A(zi).Sup.noe);
0018     A(zi).Clean.bsf=nan(double(A(zi).Sup.nBins),A(zi).Sup.noe);
0019 
0020     <span class="comment">% Determine the standard deviation of the backscatter for the four beams in</span>
0021     <span class="comment">% one bin in one ensemble</span>
0022     back=A(zi).Wat.backscatter;
0023     back(back&gt;=255) = NaN;
0024     A(zi).Clean.backstandf = std(back,0,3);
0025 
0026     <span class="comment">% Remove backscatter intensities &gt;= 255 (bad value) and backscatter</span>
0027     <span class="comment">% intensities with a standard deviation greater than 10 (mainly climbing</span>
0028     <span class="comment">% walls)</span>
0029     A(zi).Clean.bsf = nanmean(A(zi).Wat.backscatter,3);
0030     <span class="comment">%A(zi).Clean.bsf(A(zi).Clean.bsf&gt;=255) = NaN;</span>
0031     <span class="comment">%A(zi).Clean.bsf(A(zi).Clean.backstandf&gt;10)=NaN;</span>
0032 
0033     A(zi).Nav.depth(A(zi).Nav.depth==-32768)=NaN;
0034 
0035 <span class="keyword">end</span></pre></div>
<hr><address>Generated on Thu 21-Mar-2013 09:32:01 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>